package KatPhTests;

import Rout.GoBefore;
import org.testng.annotations.*;

public class KatSmall {

    private GoBefore browser = new GoBefore();     
                
    @BeforeMethod
    public void setUp() throws Exception {
        System.out.println("\n Run test: " + getClass().getSimpleName());
           
       
        browser.curURL = "http://kickass.to/teenage-mutant-ninja-turtles-2014-720p-hdcam-english-pimp4003-exclusive-t9432542.html";
        browser.cssButton = "#_ad4d917f2e764fab63b916b5e0655d2e > a";
        browser.xpFilename = "//*[@id=\"mainDetailsTable\"]/tbody/tr/td[1]/h1/a/span";        
        browser.lpurl = "getsecuredfiles.com";
        browser.repDir = getClass().getSimpleName();
    }        
            
    @Test
    public void SmalButton () throws Exception {
        
        
        
        browser.setUp();
        browser.testRun();
        browser.lpDetect();
        browser.verFilename();
        browser.verFilePresent();
    
    }
    
    @AfterMethod
    public void ThearsDown() {
        browser.driver.quit();      
        
    }
    
}
